
#include <iostream>
#include "CStateOFF.h"
#include "CStateON.h"

using namespace std;


CStateOFF::CStateOFF()
{


}

CStateOFF::~CStateOFF()
{

}


void CStateOFF::on(CMachine *itsMachine)
{
    cout << "\tState transition OFF -> ON" << endl;

    itsMachine->setActualState(new CStateON());
    delete this;
}

